<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>双向测试绑定自我测试</title>
    <link rel="stylesheet" href="">
    <script src="https://unpkg.com/vue"></script>
</head>

<div id="vue-app">
    <h1>双向数据绑定</h1>
    <label>姓名</label>
    <input ref="name" type="text" v-on:keyup="logName">
    <span>{{name}}</span>
    <label>年龄</label>
    <input  type="text" v-model="age">
    <span>{{age}}</span>

</div>
<body>
<script src="dtest.js"></script>
</body>
</html>